import Vue from 'vue'

export default {
  async list (data) {
    return Vue.http.post('./gxActivityReward/getRewardList', data)
  },

  // 创建
  async create (data) {
    let params = Object.assign({}, data)
    return Vue.http.post('./gxActivityReward/saveReward', params)
  },

  // 更新
  async update (data) {
    let params = Object.assign({}, data)
    return Vue.http.post('./gxActivityReward/editReward', params)
  },

  // 删除
  async remove (data) {
    return Vue.http.post('./gxActivityReward/delReward', data)
  }
}
